.class public Lcom/waiqin365/lightapp/im/adapter/a;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/util/List;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 0

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/adapter/a;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/im/adapter/a;->b:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/a;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5

    const/high16 v4, 0x41200000    # 10.0f

    const/4 v3, 0x0

    if-nez p2, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/a;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f03007c

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    new-instance v1, Lcom/waiqin365/lightapp/im/adapter/b;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/adapter/b;-><init>(Lcom/waiqin365/lightapp/im/adapter/a;)V

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    const v0, 0x7f0c0313

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/im/adapter/b;->a:Landroid/widget/TextView;

    const v0, 0x7f0c0312

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, v1, Lcom/waiqin365/lightapp/im/adapter/b;->b:Landroid/widget/LinearLayout;

    :goto_0
    iget-object v2, v1, Lcom/waiqin365/lightapp/im/adapter/b;->a:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/a;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, v1, Lcom/waiqin365/lightapp/im/adapter/b;->a:Landroid/widget/TextView;

    const/16 v2, 0x13

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v0, v1, Lcom/waiqin365/lightapp/im/adapter/b;->a:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/adapter/a;->a:Landroid/content/Context;

    invoke-static {v2, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-virtual {v0, v2, v3, v3, v3}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v0, v1, Lcom/waiqin365/lightapp/im/adapter/b;->a:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/adapter/a;->a:Landroid/content/Context;

    invoke-static {v2, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setCompoundDrawablePadding(I)V

    if-nez p1, :cond_2

    iget-object v0, v1, Lcom/waiqin365/lightapp/im/adapter/b;->a:Landroid/widget/TextView;

    const v1, 0x7f0202fd

    invoke-virtual {v0, v1, v3, v3, v3}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(IIII)V

    :cond_0
    :goto_1
    return-object p2

    :cond_1
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/adapter/b;

    move-object v1, v0

    goto :goto_0

    :cond_2
    const/4 v0, 0x1

    if-ne p1, v0, :cond_3

    iget-object v0, v1, Lcom/waiqin365/lightapp/im/adapter/b;->a:Landroid/widget/TextView;

    const v1, 0x7f020177

    invoke-virtual {v0, v1, v3, v3, v3}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(IIII)V

    goto :goto_1

    :cond_3
    const/4 v0, 0x2

    if-ne p1, v0, :cond_0

    iget-object v0, v1, Lcom/waiqin365/lightapp/im/adapter/b;->a:Landroid/widget/TextView;

    const v1, 0x7f020273

    invoke-virtual {v0, v1, v3, v3, v3}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(IIII)V

    goto :goto_1
.end method
